#encoding:utf8 

import subprocess

def run_and_check(cmd):
    '''
    运行命令并检查结果
    需要外部自己捕获 
    CalledProcessError
    '''
    return subprocess.run(cmd, shell=True, check=True)

def run(cmd):
    '''
    运行命令并返回CompletedProcess对象
    直接查看CompletedProcess的具体返回做逻辑
    '''
    return subprocess.run(cmd, shell=True)


# __all__ = [
#     "run_and_check",
#     "run"
# ]